This page last changed on Oct 04, 2004 by eblack.

 

Html Macro

 

Users who wish to place html code within a web page can use Confluence's built in html macro. The syntax is very simple, just surround the html code with html macro indicators:

{html}
     <table cellpadding="2" cellspacing="2" border="1"style="text-align: left; width: 40%;">
        <tbody>
          <tr>
            <td style="vertical-align: top; background-color: rgb(255, 0, 0);"><br>
            </td>
            <td style="vertical-align: top; background-color: rgb(0, 255, 0);"><br>
            </td>
          </tr>
          <tr>
            <td style="vertical-align: top; background-color: rgb(0, 0, 255);"><br>
            </td>
            <td style="vertical-align: top;background-color: rgb(255, 255, 51);"><br>
            </td>
          </tr>
        </tbody>
      </table>
{html}

 
The above html code produces this simple table:
 





 

Html-include Macro

 

Users who wish to embed a html page in their document can use Confluence's built in html-include macro. The page needs to be a page that is accessible and without user intervention, so this will not work with pages that require logins, send cookies to a browser that is not set up to accept them, SSL protected sites that server a certificate, etc. Also, the retrieval engine in Confluence doesn't seem to be able to figure out all the pieces of a web page, such as images, etc. if they are referenced by a relative path and some code may be reinterpreted by Confluence editting tags
 
The syntax is simple:

\{html-include:http://www.somesite.com\}

This is an included Concord webpage:
 
 

Unknown macro: {html-include}

 

The following URL works 

{html-include:http://www.google.com}

Simply adding URL parameters breaks html-include.

{html-include:http://www.google.com?q=empiregp}

Is there a known workaround?

Posted by at Feb 13, 2008 15:37
Document generated by Confluence on Jan 27, 2014 16:57